package com.suzhe.ymall.product.convert;

import com.suzhe.ymall.product.param.SpuUpdateParam;
import com.suzhe.ymall.product.pojo.Spu;
import com.suzhe.ymall.product.vo.SpuVo;
import org.mapstruct.factory.Mappers;

@org.mapstruct.Mapper
public interface ProductConvert {

    ProductConvert MAPPER = Mappers.getMapper(ProductConvert.class);

    SpuVo spuToSpuVo(Spu spu);

    Spu updateParamToSpu(SpuUpdateParam param);
}
